package com.hmall.common.feign;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author dml
 * Date on 2022/7/13 0013
 */

@FeignClient(value = "userservice")
public interface AddressClient {
    @GetMapping("/address/{id}")
     Address findAddressById(@PathVariable("id") Long id);
}
